1. Placeholder, string insertionWhen a string is given a literal value, it is often encountered in the case of a string containing variables, splicing with the connector, the way of conversion is more troublesome, but also error-prone. C # provides
1 overviewThis may be a confusing, even confusing topic, but that is why the discussion is necessary.
In regular, some characters that have special meaning, or sequences of characters, are called Meta characters, such as "?" Indicates that the
During program development, we often encounter the use of escape sequences in the literal values of strings. The following table lists the complete escape sequences for reference:
Escape Sequence List
Escape Sequence
Generated
Repeating character for regular expression:character meaning{N,m} matches the previous item at least n times, but not more than m times{N,} matches the previous n times, or more times{n} matches the previous item exactly n times? Matches the
Usage
int printf (const char *format,[argument]);
Format for the output of the format parameter, defined as:
%[FLAGS][WIDTH][.PERC] [f| N|h|l]type
Specify the mode of data output, as follows:
1.type meanings are as follows:
D signed 10 binary
1. Table 2.1. c Standard Escape Character \ 'single quote or apostrophe) \ "Double quotation marks "\? Question mark? (Question mark) \ backslash \ (backslash) \ A bell (alert or bell) \ B backspace \ f form feed) \ n line feed \ r carriage return \
1 OverviewThis may be a confusing or even confusing topic, but it is also necessary for discussion.In a regular expression, some special characters or character sequences are called metacharacters, such as "?". Indicates that the modified
Small Q Spray intentionally thousand heavy snow peach no Words a team spring a pot of wine a pole lun the world like Lennon there are several people. ---Li yu "fishing songs son"-----------------------------------------------------------------------
Capture
Capture is a mechanism in which part of the pattern string can be used to match part of the target string. Enclose the pattern you want to capture in parentheses and specify a capture.When string. Find uses capture, the function returns the
This series is my note in the process of learning the Python language, mainly a number of knowledge points, rather than learning tutorials, for a certain programming basis for reference. The prejudice and insufficiency in the text are unavoidable,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.